#pragma once

#include "../utils/object.h"

#include <unordered_map>

namespace fusion_perception {

class Store;
class TimeSync {
public:
    TimeSync(void) = default;
    ~TimeSync(void) = default;

    void push(const std::string& frameId, ObjectSptrVector msg);
    TimeSyncObject take(int64_t microTs);

private:
    std::unordered_map<std::string, std::shared_ptr<Store>> storeUMap_;
};
}